]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Always notify icon-name on strength change
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 9 Aug 2022 10:55:16 +0000 (12:55 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Aug 2022 12:55:48 +0000 (12:55 +0000)
We do want to update the best AP on strength change, in case we
can switch to a better one.

But even if we can't and the AP is unchanged, the icon should
be updated to reflect the change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2414>

js/ui/status/network.js

index 7a436ba7a568b3867f2eeb3cad04c1e0289a1edc..0bddc621a4e2d334632b25acecbe781ff23f8cc9 100644 (file)
@@ -714,8 +714,10 @@ const WirelessNetwork = GObject.registerClass({
         this._accessPoints.add(ap);
 
         ap.connectObject(
-            'notify::strength', () => this._updateBestAp(),
-            this);
+            'notify::strength', () => {
+                this.notify('icon-name');
+                this._updateBestAp();
+            }, this);
         this._updateBestAp();
 
         if (wasActive !== this.is_active)